package day23.Person;

public class Test {
    int a=0;
    void haha(){
        System.out.println("fulei1");
    }
}
class A2 extends Test{
    int a=0;
    void haha(){
        System.out.println("子类");
    }

    public static void main(String[] args) {
        Test t=new A2();
        t.haha();
        System.out.println(t.a);
        Object a=new A2();
        Object b=new A2();
        System.out.println(a.equals(b));
    }
}